<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
    <!-- Custom Font Icons CSS-->
    <link rel="stylesheet" href="css/font.css">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="css/custom.css">
    <title>我的收藏</title>

</head>
<body>
<div id="articleCollectMain">

    <header class="header">
        <nav class="navbar navbar-expand-lg">
            <div class="search-panel">
                <div class="search-inner d-flex align-items-center justify-content-center">
                    <div class="close-btn">Close <i class="fa fa-close"></i></div>
                    <form id="searchForm" action="#">
                        <div class="form-group">
                            <input type="search" name="search" placeholder="What are you searching for...">
                            <button type="submit" class="submit">Search</button>
                        </div>
                    </form>
                </div>
            </div>
            <div class="container-fluid d-flex align-items-center justify-content-between">
                <div class="navbar-header">
                    <!-- Navbar Header--><a href="home.html" class="navbar-brand">
                    <div class="brand-text brand-big visible text-uppercase"><strong
                            class="text-primary">小标</strong><strong>会议平台</strong></div>
                    <div class="brand-text brand-sm"><strong class="text-primary">X</strong><strong>B</strong></div>
                </a>
                    <!-- Sidebar Toggle Btn-->
                    <button class="sidebar-toggle"><i class="fa fa-long-arrow-left"></i></button>
                </div>
                <div class="right-menu list-inline no-margin-bottom">
                    <!-- Log out -->
                    <div class="list-inline-item logout">
                        <a id="logout" href="logout" class="nav-link"><span
                                class="d-none d-sm-inline">Logout </span></a>
                    </div>
                </div>
            </div>
        </nav>
    </header>


    <div class="d-flex align-items-stretch">
        <!-- Sidebar Navigation-->
        <nav id="sidebar">
            <!--sidebar.html-->
            <div class="sidebar-header d-flex align-items-center">
                <div id="avatar" class="avatar"><a href="userLook"><img :src="'/upload/'+userLoginInfo.data.pic"
                                                                        alt="..." class="img-fluid rounded-circle"></a>
                </div>
                <div class="title">
                    <h1 class="h5">{{userLoginInfo.data.username}}</h1>
                    <p>{{userLoginInfo.data.deptName}}</p>
                </div>
            </div>
            <!-- Sidebar Navidation Menus -->
            <span class="heading">Main</span>
            <ul class="list-unstyled">
                <li><a href="home"> <i class="icon-home"></i>主页 </a></li>
                <li><a href="#userDropdown" data-toggle="collapse" aria-expanded="true"> <i class="icon-windows"></i>用户列表</a>
                    <ul id="userDropdown" class="collapse  list-unstyled" :class="flag==4?'show':''">
                        <li :class="flag==1?'active':''"><a href="user">查看用户</a></li>
                        <li :class="flag==2?'active':''"><a href="myUser">我关注的用户</a></li>
                        <li :class="flag==3?'active':''"><a href="article">发布文章</a></li>
                        <li :class="flag==4?'active':''"><a href="articleCollect">我的收藏</a></li>
                    </ul>
                </li>
                <!--<li><a href="login.html"> <i class="icon-logout"></i>Login page </a></li>-->
                <li><a href="#depDropdown" data-toggle="collapse" > <i class="icon-windows2"></i>部门列表</a>
                    <ul id="depDropdown" class="collapse list-unstyled ">
                        <li :class="flag==5?'active':''"><a href="allDept">全部部门</a></li>
                        <li :class="flag==6?'active':''"><a href="meeting">会议系统</a></li>
                    </ul>
                </li>
            </ul>
        </nav>

        <!-- Sidebar Navigation end-->
        <div class="page-content">
            <div class="page-header">
                <div class="container-fluid">
                    <h2 class="h5 no-margin-bottom">我收藏的文章</h2>
                </div>
            </div>

            <section class="no-padding-bottom">

                <div class="list-group myList">
                    <!--搜索文章的条件-->
                    <div class="myTitle">
                        <form class="form-inline">
                            <div class="form-group">
                                <label for="inlineFormInput" class="sr-only">Name</label>
                                <input id="inlineFormInput" type="text" placeholder="按标题名字查找" class="mr-sm-3 form-control">
                            </div>
                            <div class="form-group">
                                <input type="button" value="查询" @click="titleByNameLimit(1,pageInfo.pageSize)" class="btn btn-primary">
                            </div>
                        </form>

                        <!--<input id = "addArt" type="submit" value="发布文章" class="btn btn-primary">-->

                    </div>

                    <ul v-for="articleCollectList in pageInfo.list">
                        <li class="list-group-item">
                            <div style="float: right;">
                                <span><strong>收藏数：</strong>{{articleCollectList.collectNum}}</span>
                                <span>&nbsp;</span>
                                <span>&nbsp;</span>
                                <span>&nbsp;</span>
                                <span><strong>浏览数：</strong>{{articleCollectList.browseCount}}</span>
                            </div>
                            <a href="javascript:void (0)" @click="getArticleDetail(articleCollectList)">{{articleCollectList.title}}</a>
                            <p class="h6"><strong>作者：</strong>{{articleCollectList.publishRealName}}</p>
                            <p class="h6"><strong>时间：</strong>{{articleCollectList.publishDate}}</p>
                            <p style="white-space:nowrap;overflow:hidden;text-overflow: ellipsis">
                                {{articleCollectList.content}}
                            </p>
                        </li>


                    </ul>

                    <nav class="text-center" aria-label="Page navigation">
                        <ul class="pagination">
                            <li v-if="pageInfo.pageNum!=1">
                                <a @click="titleByNameLimit(pageInfo.prePage,pageInfo.pageSize)"
                                   aria-label="Previous">
                                    <span aria-hidden="true">&laquo;</span>
                                </a>
                            </li>

                            <li v-for="num in pageInfo.navigatepageNums">
                                <a :class="pageInfo.pageNum==num?'active':''"
                                   @click="titleByNameLimit(num,pageInfo.pageSize)">{{num}}</a>
                            </li>

                            <li v-if="pageInfo.pageNum!=pageInfo.pages">
                                <a @click="titleByNameLimit(pageInfo.nextPage,pageInfo.pageSize)"
                                   aria-label="Next">
                                    <span aria-hidden="true">&raquo;</span>
                                </a>
                            </li>
                        </ul>
                    </nav>
                </div>
            </section>

            <footer class="footer">
                <div class="footer__block block no-margin-bottom">
                    <div class="container-fluid text-center">
                        <p class="no-margin-bottom">Copyright &copy; 2019.Company <a href="#">东方标准</a></p>
                    </div>
                </div>
            </footer>
        </div>
    </div>

</div>


<!--Vue-->
<script src="vue/vue.js"></script>
<script src="vue/axios.js"></script>
<!-- JavaScript files-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/popper.js/umd/popper.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/jquery.cookie/jquery.cookie.js"></script>
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="vendor/jquery-validation/jquery.validate.min.js"></script>
<script src="js/charts-home.js"></script>
<script src="js/front.js"></script>
<script src="js/custom.js"></script>

<!--layer-->
<script src="layer/layer.js"></script>

<!--myVue-->
<script src="static/vueJS/articleCollect.js"></script>

<!--Jquery-->
<script type="text/javascript">
    $(function () {
        $("#inlineFormInput").blur(function () {
            vm1.inlineFormInput.value=this.value;
        })
    })
</script>
</body>
</html>